package com.cet.designpatterns.adapter.interfaceadapter;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-09-07 23:31
 **/
public class Client {
    public static void main(String[] args) {

        //程序里的匿名内部类就是具体实现类
        AbsAdapter adapter = new AbsAdapter() {
            @Override
            public void m1() {
                System.out.println("使用了m1方法！");
            }
        };
        adapter.m1();
    }
}
